package cn.school.Entity;

import java.util.ArrayList;
import java.util.List;

public class Page<T> {
    public static final int Page_SIZE = 10;
    int code = 0, limit = Page_SIZE, Page = 1;
    String msg = "";
    int count = 0;
    private List<T> data = new ArrayList<>(0);

    public Page() {
    }
    public Page(int code, int count,List<T> data) {
        super();
        this.code = code;
        this.count = count;
        this.data = data;
    }
    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public List<T> getData() {
        return data;
    }

    public void setData(List<T> data) {
        this.data = data;
    }

}

